package ngram.util;

import com.google.common.io.CountingInputStream;
import java.io.DataInputStream;

/**
 *
 * @author Shimu
 * @date 11-Nov-2013
 */
public class CountingDataInputStream extends DataInputStream {
    
    private final CountingInputStream COUNTING_STREAM;
    
    public CountingDataInputStream(CountingInputStream stream) {
        super(stream);
        this.COUNTING_STREAM = stream;
    }
    
    /**
     * Returns the number of bytes read.
     * @return 
     */
    public long getCount() {
        return COUNTING_STREAM.getCount();
    }
}
